/*
 * StringInfo.h
 *
 *  Created on: 2011-7-24
 *      Author:
 */

#ifndef STRINGINFO_H_
#define STRINGINFO_H_
#include <tinyxml.h>
#include "type.h"
#include "StringInfo.h"
namespace swfstream {

class StringInfo {
public:
	StringInfo();
	virtual ~StringInfo();
	uint32 size;
	char* utf8;
	TiXmlElement* toTiXmlElement() {
		TiXmlElement* r = new TiXmlElement("StringInfo");
		r->SetAttribute("size", size);
		TiXmlElement* tmp = new TiXmlElement("utf8");
		r->LinkEndChild(tmp);
		tmp->LinkEndChild(new TiXmlText(utf8));
		return r;
	}
};

} /* namespace swfstream */
#endif /* STRINGINFO_H_ */
